package com.boge.activiti.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

import java.util.Map;
import java.util.Set;

public class MyThirdListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        Map<String, Object> variables = delegateTask.getVariables();
        Set<String> keys = variables.keySet();
        for (String key : keys) {
            Object obj = variables.get(key);
            System.out.println("--third--->"+key+"="+obj);
            // 获取之后修改对应的流程变量信息
            //variables.put(key,"boge3306");
            //delegateTask.setVariable(key,obj+"[]");
        }
    }
}
